import $req, { HttpMethod } from './indexs';

enum API {
  description = '/api/city/description',
  customsList = "/api/customs/list",
  viewList = "/api/view/list",
  footList = "/api/food/list",
  footAddress = "/api/food/address-list"
}

// 获取简介
export const description:any = () => $req(API.description); 

//获取节日
export const customsList:any = (params:any) => $req(API.customsList,{body:params,method: HttpMethod.post},'json');

//获取景点
export const viewList:any = (params:any) => $req(API.viewList,{body:params,method: HttpMethod.post},'json');

//获取美食
export const footList:any = (params:any) => $req(API.footList,{body:params,method: HttpMethod.post},'json');

// 获取食物address
export const footAddress:any = () => $req(API.footAddress); 